/*
  @author: 13813
  @date: 2024/11/12 9:40
*/
public class ArrayDemo03 {
    public static void main(String[] args) {
        int[] arr = new int[]{9, 6, 3};

//        System.out.println(arr[3]); //ArrayIndexOutOfBoundsException 下标越界异常

//        arr = null;
//        System.out.println(arr[0]);//NullPointerException 空指针异常

//        System.out.println(arr.length); //数组长度

        for (int i = 0; i < arr.length; i++) {
//            System.out.println(arr[i]);
        }


    }
}
